<%@page contentType="text/html; charset=utf-8"%>
<!DOCTYPE html>
<html>
<head>
    <title>创业武汉合伙人</title>
    <%@include file="common/header.jsp"%>
    </head>
<body>
<!-- page 容器 -->
<div class="page">
    <!-- 标题栏 -->
    <header class="bar bar-nav bgcolor nobottom">
        <%--<button class="button button-link button-nav pull-left">--%>
            <%--<span class="icon icon-left"></span>--%>
        <%--</button>--%>
        <h1 class="title whitecolor">创业武汉合伙人</h1>
    </header>

    <!-- 工具栏 -->
    <!--<nav class="bar bar-tab">
        <a class="tab-item active" href="#">
            <span class="icon icon-home"></span>
            <span class="tab-label">首页</span>
        </a>
        <a class="tab-item" href="#">
            <span class="icon icon-star"></span>
            <span class="tab-label">收藏</span>
        </a>
        <a class="tab-item" href="#">
            <span class="icon icon-settings"></span>
            <span class="tab-label">设置</span>
            <span class="badge">2</span>
        </a>
    </nav>-->
    <form action="${ctx}/m/main.do" method="post" name="loginForm">
    <!-- 这里是页面内容区 -->
    <div class="content whitebg">
        <div class="login_img"> <img src="${weixinUser.headimgurl}" style="width: 5rem;height: 5rem"></div><!-- images/creater.jpg -->
        <div class="list-block border_top border_left border_right" style="width: 80%;margin: 0 auto">
            <ul>
                <!-- Text inputs -->
                <li>
                    <div class="item-content">
                        <div class="item-media"></div>
                        <div class="item-inner">
                            <div class="item-input">
				    			${errMsg==null?"欢迎登录！":errMsg}
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="item-content">
                        <div class="item-media"><i class="fa fa-user gray"></i></div>
                        <div class="item-inner">
                            <div class="item-input">
				    			<input type="hidden" name="loginFrom" value="mobile" />
                                <input name="account" type="text" placeholder="请输入帐号">
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="item-content">
                        <div class="item-media"><i class="fa fa-unlock-alt gray"></i></div>
                        <div class="item-inner">
                            <div class="item-input">
                                <input name="password" type="password" placeholder="请输入密码">
                            </div>
                        </div>
                    </div>
                </li>
            </ul>
        </div>

        <button id="btn-login" class="button button-fill" style="width: 80%;margin: 0 auto;background: #9E231C;margin-top: 2.5rem;height: 1.8rem;line-height: 1.8rem">登录</button>




    </div>
    </form>
</div>

</body>
</html>
<%@include file="common/footer.jsp"%>
<script>
    $.init();
    $(function(){
        $("#btn-login").click(function(){
            $("#j_spring_security_check").submit();
            });
//            var param = {};
//            param.account=$("#userName").val();
//            param.from="m";
//            param.password=$("#password").val();
//            $.ajax({
//                data:param,
//                url:"toLogin.do",
//                type: "POST",
//                dataType: "json",
//                success:function(data){
//                    if(data.statusCode==200){
//                        $.toast("登录成功");
//                        setTimeout(function(){
//                            location.href="index.do";
//                        },1000);
//                    }else{
//                        $.toast(data.message);
//                    }
//                }
//            })
//        });
    });
</script>